home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 076-100 / disk_091 / include / adlcomp.h next >
C/C++ Source or Header  |  1992-05-06  |  2KB  |  68 lines

  1.     /***************************************************************\
  2.     *                                *
  3.     *    adlcomp.h - variable, function, and macro definitions    *
  4.     *    for use by adlcomp.                    *
  5.     *                                *
  6.     \***************************************************************/
  7.  
  8.  
  9. extern char
  10.     token[],            /* Current token found by lexer        */
  11.     inname[];            /* Name of the current input file    */
  12.  
  13. extern int16
  14.     t_val,            /* Val of token from dict        */
  15.     t_type,            /* Type of token from dict        */
  16.     numerr,            /* Number of errors found so far    */
  17.     numwarn,            /* Number of warnings found so far    */
  18.     numline,            /* Number of lines encountered        */
  19.     wignore,            /* Ignore warnings?            */
  20.     maxerr;            /* Maximum number of errors allowed    */
  21.  
  22. extern char
  23.     *BAD_ARRAY,            /* Array size too small            */
  24.     *BRACKET_EXPECTED,        /* ']' expected                */
  25.     *LEFT_EXPECTED,        /* '(' expected                */
  26.     *RIGHT_EXPECTED,        /* ')' expected                */
  27.     *SEMI_EXPECTED,        /* ';' expected                */
  28.     *COMMA_EXPECTED,        /* ',' expected                */
  29.     *NOUN_WANTED,        /* Noun expected in expression        */
  30.     *CONST_EXPECTED,        /* Constant expected in expression    */
  31.     *VAR_EXPECTED,        /* VAR expected in expression        */
  32.     *EQUAL_EXPECTED,        /* '=' expected                */
  33.     *PREP_EXPECTED,        /* Prep expected in expression        */
  34.     *ATTEMPT,            /* Attempt to redefine a noun        */
  35.     *ILLEGAL_SYMBOL;        /* Illegal symbol (syntax error)    */
  36.  
  37. extern int16
  38.     bitpat[],            /* Bit masks for bit properties        */
  39.     ibitpat[];            /* Same as above, but inverted.        */
  40.  
  41. extern int
  42.     CODE_F;            /* Temporary file for paging code    */
  43.  
  44. extern int
  45.     breaker();            /* Exit from ADLCOMP after fixing files    */
  46.  
  47. /* From codegen.c */
  48. extern address
  49.     newcode(),            /* Add a new instruction to CODE_F    */
  50.     oldcode(),            /* Modify an old instruction        */
  51.     currcode();            /* Return the current end of CODE_F    */
  52.  
  53. /* From adlobj.c */
  54. extern int16
  55.     getnew(),            /* Get an undeclared object from input    */
  56.     getold(),            /* Get previously declared obj from input */
  57.     noun_exists(),        /* Does an object exist with the specified
  58.                    modifier and noun? */
  59. /* From dict.c */
  60.     lookup(),            /* Find the type and value of a token    */
  61.     insertkey();        /* Make a new token, given type and val    */
  62.  
  63. /* Error macros */
  64. #define _ERR_FIX( str, ch )    { error( str ); eatuntil( ch ); return; }
  65. #define _ERR_FX0( str, ch )    { error( str ); eatuntil( ch ); return 0; }
  66.  
  67. /*** EOF adlcomp.h ***/
  68.